IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'spTemployees_Create')
	BEGIN
		PRINT 'Dropping Procedure spTemployees_Create'
		DROP  Procedure  spTemployees_Create
	END

GO

PRINT 'Creating Procedure spTemployees_Create'
GO
CREATE Procedure dbo.spTemployees_Create
	( 	  
	  @FEMPFNAME char() = null, 
		@FEMPLNAME char() = null, 
		@FEMPDEPART char() = null, 
		@FEMPEMAIL char() = null, 
		@FEMPGROUP char() = null
	)
AS
  /* 
    ------------------------------------------------------------------------------
    - Change History
    - --------------
    - Date          Description
    ------------------------------------------------------------------------------
    - 8/23/2007    Initial version created
    ------------------------------------------------------------------------------
  */

	-- Declare the required variables

	-- Create the required new record
	INSERT INTO Temployees
	  (
		FEMPFNAME,
			FEMPLNAME,
			FEMPDEPART,
			FEMPEMAIL,
			FEMPGROUP	  
	  )
	VALUES
	  (
		@FEMPFNAME,
			@FEMPLNAME,
			@FEMPDEPART,
			@FEMPEMAIL,
			@FEMPGROUP
	  )

	-- Handle any errors
	IF @@ERROR != 0
	BEGIN
		RAISERROR('spTemployees_Create: Unable to Insert a new Temployees', 10, 1)
		RETURN
	END

	-- Return the newly created ID
	SELECT	@@IDENTITY AS 'Temployees_ID'

	-- Return to calling method
	RETURN 

GO
